#!/bin/sh
#
# Start script
# by Kenji Hollis <khollis@bitgatemobile.com>
#
# Starts BSSE Server

CLASSPATH=lib/freemarker.jar:lib/h2.jar:dist/lib/bsse.jar:dist/lib/http-external.jar:dist/lib/webplasm.jar:dist/lib/render-hook.java:lib/jep-2.4.1.jar:lib/mysql-connector-java-5.1.7-bin.jar

# Uncomment this line to enable full debugging.
DEBUG="-Dcom.bitgate.debug=debug"
SYSTEM_ENCODING="-Dfile.encoding=iso-8859-1"

rm -f db/*.db

java -classpath $CLASSPATH $DEBUG $SYSTEM_ENCODING -XX:+UseConcMarkSweepGC com.bitgate.util.service.Server
